<%-- 
    Document   : index
    Created on : 25/05/2013, 12:08:24
    Author     : MauroH
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<%@ include file="autenticaRedirect.jsp" %>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title><fmt:message key="system.title1"/></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <!-- Loading Bootstrap -->
        <link href="assets/bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="assets/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="assets/bootstrap/css/prettify.css" rel="stylesheet">

        <!-- Loading Flat UI -->
        <link href="assets/css/flat-ui.css" rel="stylesheet">
        <link href="assets/css/custom.css" rel="stylesheet">

        <link rel="shortcut icon" href="assets/images/favicon.ico">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
        <!--[if lt IE 9]>
          <script src="assets/js/html5shiv.js"></script>
        <![endif]-->
        
    </head>
    <body>
        <div class="container">
            <div class="head row-fluid">
                <div class="span3">
                    <h1><a href="/Agendou/agenda"><fmt:message key="system.title1"/></a></h1>
                </div>
                <div class="span5 offset4">
                    <div class="navbar navbar-inverse">
                        <div class="navbar-inner">
                            <div class="container">
                                <a href="#" class="menu" data-toggle="collapse" data-target="#nav-collapse-01" >
                                    <span><fmt:message key="system.menu0"/></span>
                                    <div class="btn btn-navbar">
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                    </div>
                                </a>
                                <div class="nav-collapse collapse" id="nav-collapse-01">
                                    <ul class="nav">
                                        <li>
                                            <a href="/Agendou/agenda">
                                                <fmt:message key="system.menu10"/>
                                            </a>
                                        </li>
                                        <li class="active">
                                            <a href="login.jsp">
                                                <fmt:message key="system.menu3"/>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="cadastro.jsp">
                                                <fmt:message key="system.menu4"/>
                                            </a>
                                        </li>
                                    </ul>
                                </div><!--/.nav -->
                            </div>
                        </div>
                    </div>
                </div>
            </div> <!-- /row -->
            <hr />
            <div class="span6 menu2">
                <div class="page-info row-fluid">
                    <div class="navbar navbar-inverse">
                        <div class="navbar-inner">
                            <div class="container">
                                <ul class="nav">
                                    <li class="active">
                                        <a href="login.jsp" class="forever-alone">
                                            <fmt:message key="system.title3"/>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                 <!--<ul class="breadcrumb">
                    <li><a href="#">Home</a> <span class="divider">/</span></li>
                    <li><a href="#">Library</a> <span class="divider">/</span></li> 
                    <li class="active">Home</li>
                </ul>-->
            </div>
            <div class="clearfix"></div>
            
            <div class="row-fluid">
                <div class="form">
                    <form action="/Agendou/agenda?cmd=autenticarUsuario" method="POST">
                        <c:set var="line" value="<div class=\"alert alert-error\">"/>
                        <c:set var="message" value="${requestScope.msg}" />
                        <c:if test="${message ne null and fn:trim(message) ne ''}" >
                            <c:set var="line" value="${line}${message}</div>" />
                            <c:out value="${line}" escapeXml="false" />
                        </c:if>

                        <div class="control-group <c:if test="${message ne null and fn:trim(message) ne ''}" > error</c:if>">
                            <input type="text" class="field" value="" placeholder="<fmt:message key="system.label1"/>" id="login-name" name="username" title="<fmt:message key="system.label1"/>" />
                          <label title="<fmt:message key="system.label1"/>" class="field-icon fui-user" for="login-name"></label>
                        </div>

                        <div class="control-group  <c:if test="${message ne null and fn:trim(message) ne ''}" > error</c:if>">
                          <input type="password" class="field" value="" placeholder="<fmt:message key="system.label2"/>" id="login-pass" name="senha" title="<fmt:message key="system.label2"/>"/>
                          <label title="<fmt:message key="system.label2"/>" class="field-icon fui-lock" for="login-pass"></label>
                        </div>

                        <input type="hidden" name="redirect" value="${param.redirect}" />
                        <input type="submit" class="btn btn-primary btn-large btn-block" value="<fmt:message key="system.menu4"/>" />
                    </form>
                    <a class="form-link" href="cadastro.jsp">Cadastrar</a>
                  </div>
              </div>
        
        <script src="assets/js/jquery-1.8.3.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
    </body>
</html>
